package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the USERS database table.
 * 
 */
@Entity
@Table(name="USERS")
public class User implements Serializable {
	private static final long serialVersionUID = 1L;
	private long expuid;
	private String accountstatus;
	private Date createdate;
	private String email;
	private String emailvalcode;
	private String loginname;
	private String passwd;
	private String regcomplete;
	private BigDecimal regdomid;
	private Date updatedate;
	private String username;

    public User() {
    }


	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(unique=true, nullable=false)
	public long getExpuid() {
		return this.expuid;
	}

	public void setExpuid(long expuid) {
		this.expuid = expuid;
	}


	@Column(nullable=false, length=1)
	public String getAccountstatus() {
		return this.accountstatus;
	}

	public void setAccountstatus(String accountstatus) {
		this.accountstatus = accountstatus;
	}


    @Temporal( TemporalType.DATE)
	@Column(nullable=false)
	public Date getCreatedate() {
		return this.createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}


	@Column(nullable=false, length=80)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}


	@Column(length=30)
	public String getEmailvalcode() {
		return this.emailvalcode;
	}

	public void setEmailvalcode(String emailvalcode) {
		this.emailvalcode = emailvalcode;
	}


	@Column(nullable=false, length=30)
	public String getLoginname() {
		return this.loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}


	@Column(length=30)
	public String getPasswd() {
		return this.passwd;
	}

	public void setPasswd(String passwd) {
		this.passwd = passwd;
	}


	@Column(nullable=false, length=1)
	public String getRegcomplete() {
		return this.regcomplete;
	}

	public void setRegcomplete(String regcomplete) {
		this.regcomplete = regcomplete;
	}


	@Column(nullable=false)
	public BigDecimal getRegdomid() {
		return this.regdomid;
	}

	public void setRegdomid(BigDecimal regdomid) {
		this.regdomid = regdomid;
	}


    @Temporal( TemporalType.DATE)
	@Column(nullable=false)
	public Date getUpdatedate() {
		return this.updatedate;
	}

	public void setUpdatedate(Date updatedate) {
		this.updatedate = updatedate;
	}


	@Column(length=80)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

}